USE [master]
GO
/****** Object:  Database [ZhaoxiSqlSugarDb]    Script Date: 2022/11/24 16:35:49 ******/
CREATE DATABASE [ZhaoxiSqlSugarDb]
  
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ZhaoxiSqlSugarDb].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ARITHABORT OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET  ENABLE_BROKER 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET RECOVERY FULL 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET  MULTI_USER 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET DB_CHAINING OFF 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET TARGET_RECOVERY_TIME = 60 SECONDS 
GO
EXEC sys.sp_db_vardecimal_storage_format N'ZhaoxiSqlSugarDb', N'ON'
GO
USE [ZhaoxiSqlSugarDb]
GO
/****** Object:  Table [dbo].[CodeFirstTable1]    Script Date: 2022/11/24 16:35:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CodeFirstTable1](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](200) NOT NULL,
	[Text] [nvarchar](255) NOT NULL,
	[CreateTime] [datetime] NULL,
 CONSTRAINT [PK_CodeFirstTable1_Id] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CodeFirstTable2]    Script Date: 2022/11/24 16:35:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CodeFirstTable2](
	[Id] [uniqueidentifier] NOT NULL,
 CONSTRAINT [PK_CodeFirstTable2_Id] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CodeFirstTable3]    Script Date: 2022/11/24 16:35:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CodeFirstTable3](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](200) NOT NULL,
	[Text] [nvarchar](255) NOT NULL,
	[CreateTime] [datetime] NULL,
	[Description] [nvarchar](255) NOT NULL,
	[DescriptionNew] [nvarchar](255) NOT NULL,
	[IndexUnituadfasf] [nvarchar](255) NOT NULL,
 CONSTRAINT [PK_CodeFirstTable3_Id] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[UnituLong0011]    Script Date: 2022/11/24 16:35:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[UnituLong0011](
	[Id] [int] NOT NULL,
	[Name] [varchar](255) NOT NULL,
	[Text] [varchar](255) NOT NULL,
	[CreateTime] [datetime] NOT NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [index_CodeFirstTable3_name]    Script Date: 2022/11/24 16:35:49 ******/
CREATE NONCLUSTERED INDEX [index_CodeFirstTable3_name] ON [dbo].[CodeFirstTable3]
(
	[DescriptionNew] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [index_codetable3_name]    Script Date: 2022/11/24 16:35:49 ******/
CREATE NONCLUSTERED INDEX [index_codetable3_name] ON [dbo].[CodeFirstTable3]
(
	[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [index_codetable3_nameid]    Script Date: 2022/11/24 16:35:49 ******/
CREATE NONCLUSTERED INDEX [index_codetable3_nameid] ON [dbo].[CodeFirstTable3]
(
	[Name] ASC,
	[Id] DESC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IndexUnituadfasf3_longx]    Script Date: 2022/11/24 16:35:49 ******/
CREATE NONCLUSTERED INDEX [IndexUnituadfasf3_longx] ON [dbo].[CodeFirstTable3]
(
	[IndexUnituadfasf] ASC
)
INCLUDE([Name],[Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object:  Index [unique_codetable3_CreateTime]    Script Date: 2022/11/24 16:35:49 ******/
CREATE UNIQUE NONCLUSTERED INDEX [unique_codetable3_CreateTime] ON [dbo].[CodeFirstTable3]
(
	[CreateTime] DESC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [ZhaoxiSqlSugarDbindex_codetable3_name]    Script Date: 2022/11/24 16:35:49 ******/
CREATE NONCLUSTERED INDEX [ZhaoxiSqlSugarDbindex_codetable3_name] ON [dbo].[CodeFirstTable3]
(
	[Description] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CodeFirstTable2', @level2type=N'COLUMN',@level2name=N'Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'表备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CodeFirstTable2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'表备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CodeFirstTable3'
GO
USE [master]
GO
ALTER DATABASE [ZhaoxiSqlSugarDb] SET  READ_WRITE 
GO
